  <div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div id="ncToolbar" class="nc-appbar">
  <div class="nc-appbar-tabs" id="appBarTabs">
    <div class="ever">
          <div class="cart"><a href="javascript:void(0);" id="rtoolbar_cart"><span class="icon"></span> <span class="name">购物车</span><i id="rtoobar_cart_count" class="new_msg" style="">5</i></a></div>
             <div class="chat"><a href="javascript:void(0);" id="chat_show_user"><span class="icon"></span><i id="new_msg" class="new_msg" style="display:none;"></i><span class="tit">在线联系</span></a></div>
    </div>
    <div class="variation">
      <div class="middle">
            <div class="user" nctype="a-barUserInfo">
     <a href="javascript:void(0);">
      <div class="avatar"><img src="/home/images/default_user_portrait.gif"></div>
<span class="tit">会员登录</span>
</a>
    </div>
    <div class="user-info" nctype="barUserInfo" style="display:none;"><i class="arrow"></i>
      <div class="avatar"><img src="/home/images/default_user_portrait.gif">
        <div class="frame"></div>
      </div>
    </div>
        <div class="prech">&nbsp;</div>
                <div class="compare"><a href="javascript:void(0);" id="compare"><span class="icon"></span><span class="tit">商品对比</span></a></div>
            </div>
      <div class="gotop"><a href="javascript:void(0);" id="gotop"><span class="icon"></span><span class="tit">返回顶部</span></a></div>
    </div>
    <div class="content-box" id="content-compare">
      <div class="top">
        <h3>商品对比</h3>
        <a href="javascript:void(0);" class="close" title="隐藏"></a></div>
      <div id="comparelist"></div>
    </div>
    <div class="content-box" id="content-cart">
      <div class="top">
        <h3>我的购物车</h3>
        <a href="javascript:void(0);" class="close" title="隐藏"></a></div>
      <div id="rtoolbar_cartlist"></div>
    </div>
  </div>
</div>
<script type="text/javascript">
//返回顶部
backTop=function (btnId){
  var btn=document.getElementById(btnId);
  var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
  window.onscroll=set;
  btn.onclick=function (){
    btn.style.opacity="0.5";
    window.onscroll=null;
    this.timer=setInterval(function(){
        scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
      scrollTop-=Math.ceil(scrollTop*0.1);
      if(scrollTop==0) clearInterval(btn.timer,window.onscroll=set);
      if (document.documentElement.scrollTop > 0) document.documentElement.scrollTop=scrollTop;
      if (document.body.scrollTop > 0) document.body.scrollTop=scrollTop;
    },10);
  };
  function set(){
      scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
      btn.style.opacity=scrollTop?'1':"0.5";
  }
};
backTop('gotop');
//动画显示边条内容区域
$(function() {
    ncToolbar();
    $(window).resize(function() {
        ncToolbar();
    });
    function ncToolbar() {
        if ($(window).width() >= 1240) {
            $('#appBarTabs >.variation').show();
        } else {
            $('#appBarTabs >.variation').hide();
        }
    }
    $('#appBarTabs').hover(
        function() {
            $('#appBarTabs >.variation').show();
        }, 
        function() {
            ncToolbar();
        }
    );
    $("#compare").click(function(){
      if ($("#content-compare").css('right') == '-210px') {
       loadCompare(false);
       $('#content-cart').animate({'right': '-210px'});
         $("#content-compare").animate({right:'35px'});
      } else {
        $(".close").click();
        $(".chat-list").css("display",'none');
        }
  });
    $("#rtoolbar_cart").click(function(){
        if ($("#content-cart").css('right') == '-210px') {
          $('#content-compare').animate({'right': '-210px'});
        $("#content-cart").animate({right:'35px'});
        if (!$("#rtoolbar_cartlist").html()) {
          $("#rtoolbar_cartlist").load('index.php?act=cart&op=ajax_load&type=html');
        }
        } else {
          $(".close").click();
          $(".chat-list").css("display",'none');
        }
  });
  $(".close").click(function(){
    $(".content-box").animate({right:'-210px'});
      });

  $(".quick-menu dl").hover(function() {
    $(this).addClass("hover");
  },
  function() {
    $(this).removeClass("hover");
  });

    // 右侧bar用户信息
    $('div[nctype="a-barUserInfo"]').click(function(){
        $('div[nctype="barUserInfo"]').toggle();
    });
    // 右侧bar登录
    $('div[nctype="a-barLoginBox"]').click(function(){
        $('div[nctype="barLoginBox"]').toggle();
        document.getElementById('codeimage').src='http://b2b2c.wrtx.cn/shop/index.php?act=seccode&op=makecode&nchash=f5ab209a&t=' + Math.random();
  });
    $('a[nctype="close-barLoginBox"]').click(function(){
        $('div[nctype="barLoginBox"]').toggle();
    });
         $('#rtoobar_cart_count').html(5).show();
    });
</script>
<div class="public-top-layout w">
  <div class="topbar wrapper">
    <div class="user-entry">
          
            @if(!empty($user))
            <span>
               您好,<a target="_blank" href="{{url('user_info')}}">{{$user}}</a>
            <div class="nc-grade-mini" style="cursor:pointer;" onclick="javascript:go('{{url('user_info')}}');">V1</div>
            </span>
            欢迎来到
            <a href="{{url('/')}}" style="color:red">最强王者商城系统</a>
            <a href="{{url('/logout')}}">退出</a>
            @else
            <a href="{{url('/login')}}" style="color:red">亲,请登录</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{{url('reg')}}">还没有帐号?</a>
            @endif
    </div>


    <div class="quick-menu">
    
    <dl>
       
      </dl>
      <dl>
        <dt><a href="http://b2b2c.wrtx.cn/shop/index.php?act=member_order">我的订单</a><i></i></dt>
        <dd>
          <ul>
            <li><a href="http://b2b2c.wrtx.cn/shop/index.php?act=member_order&state_type=state_new">待付款订单</a></li>
            <li><a href="http://b2b2c.wrtx.cn/shop/index.php?act=member_order&state_type=state_send">待确认收货</a></li>
            <li><a href="http://b2b2c.wrtx.cn/shop/index.php?act=member_order&state_type=state_noeval">待评价交易</a></li>
          </ul>
        </dd>
      </dl>
      <dl class="">
        <dt><a href="http://b2b2c.wrtx.cn/shop/index.php?act=member_favorites&op=fglist">我的收藏</a><i></i></dt>
        <dd>
          <ul>
            <li><a href="http://b2b2c.wrtx.cn/shop/index.php?act=member_favorites&op=fglist">商品收藏</a></li>
            <li><a href="http://b2b2c.wrtx.cn/shop/index.php?act=member_favorites&op=fslist">店铺收藏</a></li>
          </ul>
        </dd>
      </dl>
        <dl class="weixin">
        <dt>关注我们<i></i></dt>
        <dd>
          <h4>扫描二维码<br>
            关注商城微信号</h4>
          <img src="/home/images/04961515258293522.jpg"> </dd>
        </dl>
    </div>
  </div>
</div>
<!-- PublicHeadLayout Begin -->
<!-- 顶部广告展开效果-->
<div class="wrapper" id="top-banner" style="display: block;">
<a href="javascript:void(0);" class="close" title="关闭"></a>
<a href="/home/images/京东.html" target="_blank" title="顶部广告"><img style="width:1200px;height:80px" border="0" src="/home/images/04964060432258357.jpg" alt="顶部广告"></a></div>
<!-- 顶部广告展开效果-->
<div class="header-wrap">
  <header class="public-head-layout wrapper">
    <h1 class="site-logo"><a href="/home/images/京东.html"><img src="/home/images/04961499682045947.png" class="pngFix"></a></h1>
        <div class="head-app"><span class="pic"></span>
      <div class="download-app">
       <div class="qrcode"><img src="/home/images/mb_app.png"></div>
        <div class="hint">
          <h4>扫描二维码</h4>
          下载手机客户端</div>
        <div class="addurl">
           <a href="http://b2b2c.wrtx.cn/app/app.apk" target="_blank"><i class="icon-android"></i>Android</a>
           <a href="http://b2b2c.wrtx.cn/app/app.ipa" target="_blank"><i class="icon-apple"></i>iPhone</a>
        </div>
      </div>
    </div>
    <div id="search" class="head-search-bar">
	<!--商品和店铺-->
      <ul class="tab">
        <li title="请输入您要搜索的商品关键字" act="search" class="current">商品</li>
      </ul>
      <form class="search-form" method="get" action="http://b2b2c.wrtx.cn/shop">
        <input type="hidden" value="search" id="search_act" name="act">
         <input placeholder="请输入您要搜索的商品关键字" name="keyword" id="keyword" type="text" class="input-text" value="" maxlength="60" x-webkit-speech="" lang="zh-CN" onwebkitspeechchange="foo()" x-webkit-grammar="builtin:search">
        <input type="submit" id="button" value="搜索" class="input-submit">
      </form>
	  <!--搜索关键字-->
      <div class="keyword">热门搜索：
                  <ul>
                    <li><a href="">测试关键字</a></li>
                  </ul>
      </div>
    </div>
    <div class="head-user-menu">
      <dl class="my-mall">
        <dt><span class="ico"></span>我的商城<i class="arrow"></i></dt>
        <dd>
          <div class="sub-title">
            <h4>admin<div class="nc-grade-mini" style="cursor:pointer;" onclick="javascript:go(&#39;http://b2b2c.wrtx.cn/shop/grade.html&#39;);">V1</div>
            </h4>
            <a href="http://b2b2c.wrtx.cn/shop/index.php?act=member&op=home" class="arrow">我的用户中心<i></i></a></div>
          <div class="user-centent-menu">
            <ul>
              <li><a href="" class="arrow">我的订单<i></i></a></li>
              <li><a href="" class="arrow">我的收藏<i></i></a></li>
           </ul>
          </div>
          <div class="browse-history">
            <div class="part-title">
              <h4>最近浏览的商品</h4>
              <span style="float:right;">
                <a href="#">全部浏览历史</a></span>
            </div>
            {{--浏览历史记录--}}
            <ul>
                @foreach($his as $h)
                <li class="goods-thumb">
                  <a href="/goods/{{$h->goods_id}}" title="{{$h->goods_name}}" target="_blank">
                  <img src="{{$h->goods_ori}}" alt=""></a>
                </li>
                @endforeach
            </ul>
            {{--浏览历史记录--}}
          </div>
        </dd>
      </dl>
      <dl class="my-cart">
                <div class="addcart-goods-num">5</div>
                <dt><span class="ico"></span>购物车结算<i class="arrow"></i></dt>
        <dd>
          <div class="sub-title">
            <h4>最新加入的商品</h4>
          </div>
          <div class="incart-goods-box ps-container">
            <div class="incart-goods"><dl id="cart_item_9"><dt class="goods-name"><a href="http://b2b2c.wrtx.cn/shop/item-100003.html">2015春夏季新款女装韩版宽松镂空针织衫女开衫薄短款毛衣小外套</a></dt><dd class="goods-thumb"><a href="http://b2b2c.wrtx.cn/shop/item-100003.html" title="2015春夏季新款女装韩版宽松镂空针织衫女开衫薄短款毛衣小外套"><img src="/home/images/1_00673d0a6ctb1_dqx___0-item_pic_60.jpg"></a></dd><dd class="goods-sales"></dd><dd class="goods-price"><em>¥298.00×1</em></dd><dd class="handle"><em><a href="javascript:void(0);" onclick="drop_topcart_item(9,100003);">删除</a></em></dd></dl><dl id="cart_item_11"><dt class="goods-name"><em><a href="http://b2b2c.wrtx.cn/shop/item-100024.html">幻响正品创意 LED平板阅读灯 读书灯看书灯护眼灯夜读灯 小台灯</a></em></dt><dd class="goods-thumb"><em><a href="http://b2b2c.wrtx.cn/shop/item-100024.html" title="幻响正品创意 LED平板阅读灯 读书灯看书灯护眼灯夜读灯 小台灯"><img src="/home/images/1_0613204889tb1lbix___0-item_pic_60.jpg"></a></em></dd><dd class="goods-sales"></dd><dd class="goods-price"><em><em>¥45.98×1</em></em></dd><dd class="handle"><em><em><a href="javascript:void(0);" onclick="drop_topcart_item(11,100024);">删除</a></em></em></dd></dl><dl id="cart_item_14"><dt class="goods-name"><em><em><a href="http://b2b2c.wrtx.cn/shop/item-38.html">正品 2014春装新款 女 绣花针织衫 开衫外套浮桑初 蓝色</a></em></em></dt><dd class="goods-thumb"><em><em><a href="http://b2b2c.wrtx.cn/shop/item-38.html" title="正品 2014春装新款 女 绣花针织衫 开衫外套浮桑初 蓝色"><img src="/home/images/1_04418207207476705_60.jpg"></a></em></em></dd><dd class="goods-sales"></dd><dd class="goods-price"><em><em><em>¥189.00×1</em></em></em></dd><dd class="handle"><em><em><em><a href="javascript:void(0);" onclick="drop_topcart_item(14,38);">删除</a></em></em></em></dd></dl><dl id="cart_item_16"><dt class="goods-name"><em><em><em><a href="http://b2b2c.wrtx.cn/shop/item-100009.html">2015夏装新款韩版女装糖果色显瘦开衫小清新七分袖防晒衫针织衫女</a></em></em></em></dt><dd class="goods-thumb"><em><em><em><a href="http://b2b2c.wrtx.cn/shop/item-100009.html" title="2015夏装新款韩版女装糖果色显瘦开衫小清新七分袖防晒衫针织衫女"><img src="/home/images/1_0133799a3dtb1ltjx___0-item_pic_60.jpg"></a></em></em></em></dd><dd class="goods-sales"></dd><dd class="goods-price"><em><em><em><em>¥26.90×1</em></em></em></em></dd><dd class="handle"><em><em><em><a href="javascript:void(0);" onclick="drop_topcart_item(16,100009);">删除</a></em></em></em></dd></dl><dl id="cart_item_19"><dt class="goods-name"><em><em><em><a href="http://b2b2c.wrtx.cn/shop/item-100087.html">乐视TV Letv Max70乐视tv液晶电视3d网络高清智能无线体感操作 银色 官方标配 银色 4</a></em></em></em></dt><dd class="goods-thumb"><em><em><em><a href="http://b2b2c.wrtx.cn/shop/item-100087.html" title="乐视TV Letv Max70乐视tv液晶电视3d网络高清智能无线体感操作 银色 官方标配 银色 4"><img src="/home/images/1_04956295737527713_60.jpg"></a></em></em></em></dd><dd class="goods-sales"></dd><dd class="goods-price"><em><em><em><em>¥10999.00×1</em></em></em></em></dd><dd class="handle"><em><em><em><a href="javascript:void(0);" onclick="drop_topcart_item(19,100087);">删除</a></em></em></em></dd></dl></div>
          <div class="ps-scrollbar-x-rail" style="left: 0px; bottom: 3px; width: 348px; display: none;"><div class="ps-scrollbar-x" style="left: 0px; width: 0px;"></div></div><div class="ps-scrollbar-y-rail" style="top: 0px; right: 3px; height: 0px; display: none;"><div class="ps-scrollbar-y" style="top: 0px; height: 0px;"></div></div></div>
          <div class="checkout"> <span class="total-price">共<i>5</i>种商品&nbsp;&nbsp;总计金额：<em>¥11558.88</em></span><a href="http://b2b2c.wrtx.cn/shop/index.php?act=cart" class="btn-cart">结算购物车中的商品</a> </div>
        </dd>
      </dl>
    </div>
  </header>